<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022-04-28
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <!--日期-->
    <jsp:useBean id="now" class="java.util.Date"></jsp:useBean>
    当前时间:<fmt:formatDate value="${now}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
    <!--数字-->
    数字： <fmt:formatNumber value="99999.456" type="number"></fmt:formatNumber><br>
    货币： <fmt:formatNumber value="99999.456" type="currency"></fmt:formatNumber><br>
    百分比： <fmt:formatNumber value="0.35" type="percent"></fmt:formatNumber><br>
    <!--国际化-->
    <fmt:bundle basename="fmt">
        <fmt:message var="submit" key="submit"></fmt:message>
        <fmt:message var="username" key="username"></fmt:message>
    </fmt:bundle>
    <br>
    ${username}:<input type="text" name="username"><input type="submit" value="${submit}">
</body>
</html>
